package com.itcast.tanhuaserver.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.extern.slf4j.Slf4j;

/**
 * @PachageName: com.itcast.tanhuasso.enums
 * @ClassName:
 * @Description: 用户的性别用枚举进行表示。
 * @Author: Hushi
 * @DateTime: 2021/2/718:00
 * @Version 1.0
 */
@Slf4j
public enum SexEnum implements IEnum<Integer> {
    MAN(1,"男"),
    WOMAN(2,"女"),
    UNKNOWN(3,"未知");
    private int value;
    private String desc;

    SexEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }

}
